package EmailLogin.Interface;

import EmailLogin.User.User;

import java.sql.SQLException;
import java.util.ArrayList;

public interface LoginInterface {
    //登录
    public boolean login(User user) throws SQLException, ClassNotFoundException;
    //按照指定条件查找所有符合条件的用户
    public ArrayList<User> queryAll(String where) throws SQLException, ClassNotFoundException;
    //注册
    public void add(User user) throws SQLException, ClassNotFoundException;
}
